﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JXC.Core.Models
{
    /// <summary>
    /// 入库登记表
    /// </summary>
    public class Inregister
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        //[ForeignKey("InrdId")]
        public Guid Id { set; get; }//入库单号
        public DateTime InboundDate { set; get; }//入库日期
        [ForeignKey("CommodityInformationSheetId")]
        public Guid ProductId { set; get; }//商品编码
        public string ProductName { set; get; }//商品名称
        public decimal Avalue { set; get; }//已付款

        public Guid? Ucode { set; get; }//供单位编码
        public string UName { set; get; }//供货单位
        [ForeignKey("UserInfosId")]
        public Guid Opcode { set; get; }//经办人编码
        public string Operator { set; get; }//经办人
        public string Remarks { set; get; }//备注
        public CommodityInformationSheet CommodityInformationSheet { get; set; }
        public UserInfos UserInfos { get; set; }
    }
}
